<template>
	<view>
		<u-navbar :autoBack="true" leftIconSize="40rpx"  title="账户余额" :placeholder="true" bgColor="rgb(253, 243, 232)" :titleStyle="{ fontSize: '30rpx' , fontWeight: 'bold'}"></u-navbar>
		<view class="assetBox">
			<text class="assetTitle">总资产(元)</text>
			<view class="currentAccount">
				<image src="../../../static/icons/order-InvertedTriangle.png"></image>
				<text class="status">使用中</text>
				<text class="paymentPlatform">汇付大商户</text>
			</view>
			<text class="capital">0.00</text>
			<text class="yesterdayReturn">昨日收益 0.00</text>
			<view class="other">
				<view>
					<view class="titleBox">
						<uni-icons type="info-filled" color="#fcbc04" size="20"></uni-icons>
						<text class="title">可结算资金</text>
					</view>
					<text class="info">0.00</text>
				</view>
				<view>
					<view class="titleBox">
						<text class="title">退款备用金</text>
						<uni-icons type="right" color="rgb(175,175,175)" size="20"></uni-icons>
					</view>
					<text class="info">0.00</text>
				</view>
				<view>
					<view class="titleBox">
						<text class="title">提现中</text>
					</view>
					<text class="info">0.00</text>
				</view>
			</view>
		</view>
		<view class="menuBox">
			<view class="itemBox">
				<text class="title">结算银行账户</text>
				<uni-icons class="icon" @click="goSettlement" type="right" color="rgb(120, 120, 120)" size="20"></uni-icons>
				<text class="info" @click="goSettlement">对私账户</text>
			</view>
			<view class="itemBox">
				<view class="timeBox">
					<text>2025-01</text>
					<image src="../../../static/icons/assetAccount-triangle.png"></image>
				</view>
				<view class="filterBox">
					<text>筛选</text>
					<image src="../../../static/icons/assetAccount-filter.png"></image>
				</view>
			</view>
		</view>
		<view class="contentBox">
			<view class="noData" v-if="false">
				<image src="../../../static/images/order-noData.png"></image>
				<text>暂无数据~</text>
			</view>
			<view class="tableData">
				<view class="itemBox">
					<text class="typeTitle">提现</text>
					<text class="money">-10</text>
					<text class="time">2024-10-01 10:00:01</text>
					<text class="balance">余额 0</text>
				</view>
				<view class="itemBox">
					<text class="typeTitle">提现</text>
					<text class="money">-10</text>
					<text class="time">2024-10-01 10:00:01</text>
					<text class="balance">余额 0</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{}
		},
		methods:{
			/**结算账户**/
			goSettlement(){
				this.$Router.push({
					path: '/pages/merchant/assetAccount/settlement'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.assetBox{
		width: 100%;
		float: left;
		height: 350rpx;
		background-color: rgb(253, 243, 232);
		.assetTitle{
			width: calc(40% - 40rpx);
			float: left;
			margin-left: 40rpx;
			height: 50rpx;
			margin-top: 15rpx;
			line-height: 50rpx;
			font-size: 32rpx;
		}
		.currentAccount{
			width: calc(60% - 40rpx);
			float: right;
			margin-right: 40rpx;
			height: 50rpx;
			margin-top: 15rpx;
			image{
				width: 26rpx;
				height: 26rpx;
				float: right;
				margin-top: 12rpx;
			}
			.status{
				width: auto;
				height: 40rpx;
				line-height: 40rpx;
				margin-top: 5rpx;
				padding: 0rpx 10rpx;
				font-size: 24rpx;
				color: #fff;
				float: right;
				background-color: #02a86e;
				border-radius: 8rpx;
				margin-right: 5rpx;
			}
			.paymentPlatform{
				width: auto;
				float: right;
				height: 50rpx;
				line-height: 50rpx;
				font-size: 28rpx;
				margin-right: 8rpx;
				color: rgb(66,66,66);
			}
		}
		.capital{
			width: calc(100% - 80rpx);
			float: left;
			margin-left: 40rpx;
			height: 70rpx;
			line-height: 70rpx;
			font-size: 70rpx;
			margin-top: 25rpx;
			font-weight: bold;
			color: #323334;
		}
		.yesterdayReturn{
			width: auto;
			float: left;
			max-width: calc(100% - 80rpx);
			margin-left: 40rpx;
			height: 45rpx;
			line-height: 45rpx;
			padding: 0rpx 20rpx;
			background-color: rgb(254, 249, 245);
			margin-top: 12rpx;
			border-radius: 45rpx;
			font-size: 26rpx;
			color: rgb(170,170,170);
		}
		.other{
			float: left;
			width: calc(100% - 80rpx);
			margin-left: 40rpx;
			height: 90rpx;
			margin-top: 30rpx;
			display: grid;
			grid-template-columns: repeat(3,1fr);
			.titleBox{
				width: 100%;
				display: flex;
				justify-content: center;
				height: 30rpx;
				.title{
					width: auto;
					float: left;
					font-weight: 350;
				}
			}
			.info{
				width: 100%;
				float: left;
				margin-top:10rpx;
				height: 50rpx;
				line-height: 50rpx;
				font-size: 34rpx;
				text-align: center;
				font-weight: bold;
				color: #323334;
			}
		}
	}
	.menuBox{
		width: 100%;
		height: auto;
		float: left;
		margin-top: 20rpx;
		background-color: #fff;
		.itemBox{
			width: calc(100% - 60rpx);
			float: left;
			margin-left: 30rpx;
			height: 80rpx;
			border-bottom: 1rpx solid #f5f5f5;
			.title{
				width: auto;
				float: left;
				height: 100%;
				line-height: 80rpx;
				font-size: 28rpx;
			}
			.icon{
				float: right;
				line-height: 80rpx;
			}
			.info{
				width: auto;
				float: right;
				height: 80rpx;
				line-height: 80rpx;
				margin-right: 6rpx;
				font-size: 28rpx;
				color: rgb(120, 120, 120);
			}
			.timeBox{
				width: auto;
				float: left;
				height: 55rpx;
				margin-top: 12.5rpx;
				border-radius: 10rpx;
				background-color: rgb(245,245,245);
				display: flex;
				justify-content: center;
				align-items: center;
				padding: 0rpx 20rpx;
				text{
					width: auto;
					font-size: 26rpx;
					color: #424242;
				}
				image{
					width: 25rpx;
					height: 25rpx;
					margin-left: 8rpx;
					float: right;
				}
			}
			.filterBox{
				width: auto;
				float: right;
				height: 55rpx;
				margin-top: 12.5rpx;
				border-radius: 10rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				padding: 0rpx 20rpx;
				text{
					width: auto;
					font-size: 26rpx;
					color: rgb(166, 166, 166);
				}
				image{
					width: 30rpx;
					height: 30rpx;
					margin-left: 8rpx;
					float: right;
				}
			}
		}
		.itemBox:last-child{
			border-bottom-width: 0rpx;
		}
	}
	.contentBox{
		width: 100%;
		position: absolute;
		top: 720rpx;
		bottom: 0rpx;
		background-color: #FFF;
		overflow-x: auto;
		.noData{
			width: 100%;
			height: 100%;
			float: left;
			image{
				width: 350rpx;
				height: 350rpx;
				margin-top: 200rpx;
				position: relative;
				left: 50%;
				margin-left: -175rpx;
			}
			text{
				width: 100%;
				height: 30rpx;
				line-height: 30rpx;
				float: left;
				font-size: 30rpx;
				font-weight: bold;
				color: #333132;
				text-align: center;
				margin-top: 20rpx;
			}
		}
		.tableData{
			width: 100%;
			height: auto;
			float: left;
			.itemBox{
				width: calc(100% - 60rpx);
				float: left;
				margin-left: 30rpx;
				height: 110rpx;
				border-bottom: 1rpx solid #f5f5f5;
				.typeTitle{
					width: 50%;
					float: left;
					height: 30rpx;
					line-height: 30rpx;
					font-size: 28rpx;
					margin-top: 20rpx;
					color: rgb(53, 53, 53);
				}
				.money{
					width: 50%;
					float: right;
					height: 30rpx;
					line-height: 30rpx;
					text-align: right;
					margin-top: 20rpx;
					font-size: 28rpx;
					color: rgb(52, 52, 52);
				}
				.time{
					width: 50%;
					float: left;
					height: 50rpx;
					line-height: 50rpx;
					font-size: 26rpx;
					color: rgb(164,164,164);
				}
				.balance{
					width: 50%;
					float: right;
					height: 50rpx;
					line-height: 50rpx;
					text-align: right;
					font-size: 26rpx;
					color: rgb(183, 183, 183);
				}
			}
			.itemBox:last-child{
				border-bottom-width: 0rpx;
			}
		}
	}
</style>